import Vue from 'vue'
import { URL_PREFIX } from '@/api/index'

/* /article/supplier/my/page
const a = {
  desc: '', // 是否降序排序,默认false
  field: '', // 领域分类
  orderField: '', // 排序字段
  product: '', // 产品分类
  state: '', // 状态
  theme: '', // 主题
  title: '',
  startTime: '',
  endTime: '',
  timeType: '', // 时间类型:全部,今天,昨天,本周,本月,本季,本年,近n天,近n周,近n月,近n季,近半年,自定义
  pageNo: '',
  pageSize: '',
}
查询我的稿件 */
export const getMyManuscriptList = (params) => Vue.http.get(URL_PREFIX + '/article/supplier/my/page', { params })

/* /article/supplier/my
{
  "field": 0,
  "networkCode": "string",
  "networkUrl": "string",
  "product": 0,
  "theme": "string",
  "title": "string",
  "url": "string"
}
录入稿件 */
export const articleAdd = (data) => Vue.http.post(URL_PREFIX + '/article/supplier/my', data)

/* /article/supplier/my/editor/audit
const a = {
  ids: '', // ID列表，多个使用逗号(,)分割
  message: '', // 审核意见
  pass: '', // 是否通过审核
}
主编审核稿件 */
export const articleAudit = (params) => Vue.http.post(URL_PREFIX + '/article/supplier/my/editor/audit', null, { params })
